/* 测试环境*/
const base = {
    //http://hot.active.qxiu.com/festival_common/league2403/rank/union_rank
    // active: '//hot.active.qxiu.com/',
    active: '//hot-active.qxiu.com/festival_common/welfare/',
    active1: '//hot-active.qxiu.com/festival_common/league202403_all/',
};

import {
    fetch
} from '../plugins/httpService'
// 阶段定位
export const gameStage = (query) => {
    return fetch(`${base.active1}game_stage`, query)
}
// 我的奖励
export const awardRecords = (query) => {
    return fetch(`${base.active}reward/award_records`, query)
}

// ------1.联赛福利------
// 1.1联赛奖池


//----用户信息
export const welfareUser_panel = (query) => {
    return fetch(`${base.active}user_panel`, query)
}
//----获奖记录
export const welfareUser_award_history = (query) => {
    return fetch(`${base.active}user_award_history`, query)
}
//----竞猜信息
export const welfareVote_info = (query) => {
    return fetch(`${base.active}vote_info`, query)
}
//----各赛段可投票主播
export const welfareVote_anchor_rank = (query) => {
    return fetch(`${base.active}vote_anchor_rank`, query)
}
//----投票
export const welfareVote = (query) => {
    return fetch(`${base.active}vote`, query)
}



//----当前直播间主播信息
export const pondAnchorInfo = (query) => {
    return fetch(`${base.active}benefits/pond/anchorInfo`, query)
}
//----开奖记录
export const pondLotteryRecord = (query) => {
    return fetch(`${base.active}benefits/pond/lotteryRecord`, query)
}
//----面板
export const pondPanel = (query) => {
    return fetch(`${base.active}benefits/pond/panel`, query)
}

// 1.2联赛壕礼
//----用户信息
export const trenchGiftUserInfo = (query) => {
    return fetch(`${base.active}benefits/trenchGift/userInfo`, query)
}
//----奖励记录
export const trenchGiftLotteryRecord = (query) => {
    return fetch(`${base.active}benefits/trenchGift/lotteryRecord`, query)
}

// ------2.最佳榜单------
// 2.1 最佳神壕
//----神壕榜
export const userRank = (query) => {
   // return fetch(`${base.active}user_rank`, query)
    return fetch('http://hot.active.qxiu.com/festival_common/league2403/rank/user_rank', query)
}
//----最佳神豪个人信息
export const userInfo = (query) => {
    //return fetch(`${base.active}user_info`, query)
    return fetch('http://hot.active.qxiu.com/festival_common/league2403/rank/user_info', query)
}
// 2.2最佳公会
export const unionRank = (query) => {
   // return fetch(`${base.active}union_rank`, query)
    return fetch('http://hot.active.qxiu.com/festival_common/league2403/rank/union_rank', query)
}

// ------3.春季联赛------
// 3.1 报名赛
//----报名进度
export const leg1Info = (query) => {
    return fetch(`${base.active}game01/aInfo`, query)
}
//----成功报名主播
export const successApplyList = (query) => {
    return fetch(`${base.active}game01/successApplyList`, query)
}
//----面板
export const leg1Panel = (query) => {
    return fetch(`${base.active}game01/panel`, query)
}
//3.2 淘汰赛
//----活动日历
export const leg2Calendar = (query) => {
    return fetch(`${base.active}game02/calendar`, query)
}
//----联赛值榜
export const leg2Rank = (query) => {
    return fetch(`${base.active}game02/rank`, query)
}
//----联赛值榜
export const leg2myRank = (query) => {
    return fetch(`${base.active}game02/myRank`, query)
}
//----联赛壕礼
export const leg2giftAnchorInfo = (query) => {
    return fetch(`${base.active}game02/giftAnchorInfo`, query)
}
//----面板
export const leg2Panel = (query) => {
    return fetch(`${base.active}game02/panel`, query)
}
//----壕礼面板
export const leg2GiftPanel = (query) => {
    return fetch(`${base.active}game02/giftPanel`, query)
}

//----leg3日历
export const leg3Calendar = (query) => {
    return fetch(`${base.active}riseInRank/calendar`, query)
}
//----leg3联赛壕礼
export const leg3giftTrenchGift = (query) => {
    return fetch(`${base.active}game03/giftTrenchGift`, query)
}
//----leg3胜场榜
export const leg3winsRank = (query) => {
    return fetch(`${base.active}game03/winsRank`, query)
}
//----leg3我的排名
export const leg3myRank = (query) => {
    return fetch(`${base.active}game03/myRank`, query)
}
//----leg3壕礼面板
export const leg3GiftPanel = (query) => {
    return fetch(`${base.active}game03/giftPanel`, query)
}
//----leg3面板
export const leg3Panel = (query) => {
    return fetch(`${base.active}game03/panel`, query)
}

//----leg3壕礼
export const leg3Day_award = (query) => {
    return fetch(`${base.active}game04/day_award`, query)
}

//----leg3-2分组赛况
export const leg3GroupShow = (query) => {
    return fetch(`${base.active}game04/get_group_show`, query)
}
//----leg3-2组内胜场榜(第一、三天)
export const leg3AnchorDayGroupRank = (query) => {
    return fetch(`${base.active}game04/anchor_day_group_rank`, query)
}
//----leg3-2组内胜场榜(第一、三天)
export const leg3Fail_line = (query) => {
    return fetch(`${base.active}game04/fail_line`, query)
}


//----leg3-2 PK时间线
export const leg3GetPkTimes = (query) => {
    return fetch(`${base.active}game04/get_pk_times`, query)
}

//----leg3-2 PK时间线
export const leg3get_pk_configs = (query) => {
    return fetch(`${base.active}game04/get_pk_configs`, query)
}

//----leg3-2 主播组别定位
export const leg3get_group_place = (query) => {
    return fetch(`${base.active}game04/get_place`, query)
}

//----leg3-2 第二日分组PK战况
export const leg3GetGroupDetail = (query) => {
    return fetch(`${base.active}game04/get_group_detail`, query)
}
//----leg3-2 面板
export const leg4Panel = (query) => {
    return fetch(`${base.active}game04/panel`, query)
}

//--晋级赛2奖励面板
export const leg3p2Award = (query) => {
    return fetch(`${base.active}game04/day_award`, query)
}
//3.4决赛
//----页面定位
export const showIndex = (query) => {
    return fetch(`${base.active}game05/show_index`, query)
}
//第一轮 --主播决战分榜
export const cycle1rank = (query) => {
    return fetch(`${base.active}game0501/cycle_anchor_rank`, query)
}
//第一轮 --PK时间线
export const get1time = (query) => {
    return fetch(`${base.active}game0501/get_all_time`, query)
}
//第一轮 --PK对战表
export const get1config = (query) => {
    return fetch(`${base.active}game0501/get_pk_config`, query)
}
//第二轮 --PK时间线
export const get2time = (query) => {
    return fetch(`${base.active}game0502/get_all_time`, query)
}
//第二轮 --PK对战表
export const get2config = (query) => {
    return fetch(`${base.active}game0502/get_pk_config`, query)
}
//第二轮 --主播决战分榜
export const cycle2rank = (query) => {
    return fetch(`${base.active}game0502/cycle_anchor_rank`, query)
}
//第二轮 --主播决战分榜
export const leg5panel = (query) => {
    return fetch(`${base.active}game05/panel`, query)
}
//--奖励面板
export const leg5Award = (query) => {
    return fetch(`${base.active}game05/award`, query)
}
